<template>
  <div class="goodsDetail_box">
    <div class="header">
      <div class="icon_header">
        <i class="iconfont icon-zuojiantou" @click="$router.go(-1)"></i>
      </div>
      <div class="navBar">
        <span
          :class="{ active: current == index }"
          @click="cunrrentIndex(index)"
          v-for="(item, index) in nav"
          :key="index"
          >{{ item }}</span
        >
      </div>
      <div class="icon_header">
        <van-popover
          v-model="showPopover"
          trigger="click"
          :actions="actions"
          @select="onSelect"
          placement="left-start"
        >
          <template #reference>
            <i class="iconfont icon-gengduo3"></i>
          </template>
        </van-popover>
      </div>
    </div>

    <!-- 商品页 -->
    <div class="goods" v-show="current == 0">
      <!-- 广告图 -->
      <div class="content">
        <div class="app_img">
          <img src="../assets/images/dd_app.jpg" alt="" />
        </div>
      </div>

      <!-- 轮播图 -->
      <div class="bannerBox" @click="mask = true">
        <!-- 轮播图组件 -->
        <banner :currentGoods="currentGoods" />
      </div>
      <!-- 轮播图遮罩层 -->
      <section class="mask" v-if="mask" @click="mask = false">
        <div class="auto">
          <banner :currentGoods="currentGoods" />
        </div>
      </section>

      <!-- 商品描述 ok-->
      <section class="good_decription">
        <div class="artile">
          <p class="name">
            <img src="http://product.m.dangdang.com/images/icon_zy.png" />
            {{ currentGoods[0].name }}
          </p>
          <p class="author">{{ currentGoods[0].subname }}</p>
        </div>
        <div class="priceBox">
          <div class="left_price">
            <div class="price">
              ￥<span class="currentPrice">{{ currentGoods[0].price }}</span
              ><span class="disco"
                >{{ "(" + goodDetail[0].priceInfo.discount + "折)" }}
              </span>
            </div>
            <div class="notice">降价通知</div>
            <div class="bookType">
              电子书 ￥{{ currentGoods[0].ebook_dd_price }}
            </div>
          </div>
          <p class="orginal_price">
            {{ goodDetail[0].priceInfo.originalTag
            }}<span>￥{{ currentGoods[0].original_price }}</span>
          </p>
        </div>
      </section>
      <div class="book_score">
        <div class="left">
          <div class="stars_box">
            <span class="score">9.9</span>
            <div class="stars">
              <span></span>
              <span></span>
              <span></span>
              <span></span>
              <span></span>
            </div>
          </div>
          <div class="ping_num">
            {{ currentGoods[0].total_review_count }}人评论&nbsp;
            <span class="p_messages">精彩评论送积分</span>
          </div>
        </div>
        <div class="right">
          <div class="write_commennt">我要写评论</div>
        </div>
      </div>

      <!-- 促销 ok-->
      <div class="promote">
        <div class="left">促销</div>
        <div class="center">
          <span>{{ goodDetail[0].promoInfo[0].promoTag }}</span>
          {{ goodDetail[0].promoInfo[0].promoDesc }}
        </div>
        <div class="right">
          <i class="iconfont icon-youjiantou"></i>
        </div>
      </div>

      <!-- 作者链接 -->
      <section class="link_author">
        <div class="author_name">
          <p class="left">作者</p>
          <p class="cont">{{ currentGoods[0].authorname }}</p>
          <p class="work">查看作品</p>
          <i class="iconfont icon-youjiantou"></i>
        </div>
        <div class="published">
          <p class="left">出版</p>
          <p class="cont">
            {{ currentGoods[0].publisher }}，{{ currentGoods[0].publish_date }}
          </p>
          <p class="work">查看作品</p>
          <i class="iconfont icon-youjiantou"></i>
        </div>
        <div class="type">
          <p class="left">分类</p>
          <p class="cont">图书>小说>中国当代小说</p>
          <i class="iconfont icon-youjiantou"></i>
        </div>
      </section>

      <!-- 配送地址 ok-->
      <section class="address_box">
        <div class="adress">
          <div class="to">送至:</div>
          <div class="place">
            <div class="top">天津>天津市>河东区>大王庄街道</div>
            <div class="middle">23.25前下单，预计明天送达</div>
            <div class="bottom">运费6元，满49元包邮</div>
          </div>
          <i class="iconfont icon-youjiantou"></i>
        </div>
        <div class="ensure">
          <ul>
            <li v-for="(item, index) in goodDetail[0].serviceList" :key="index">
              当{{ item.name }}
            </li>
          </ul>
        </div>
      </section>

      <!-- 商品选择 -->
      <section class="relation_options">
        <div class="option">
          <div class="title">
            <p class="left">已选</p>
            <p class="right">{{ currentGoods[0].name }}</p>
          </div>
          <div class="option_icon">
            <i
              class="iconfont icon-xiala"
              v-show="!showOption"
              @click="showOption = true"
            ></i>
            <i
              class="iconfont icon-shangla"
              v-show="showOption"
              @click="showOption = false"
            ></i>
          </div>
        </div>
        <div class="book_info" v-show="showOption">
          <div class="book_info_detail">
            <img :src="currentGoods[0].image_url" />
            <div class="book_info_cont">
              <p>￥{{ currentGoods[0].price }}</p>
              <p>已选 {{ currentGoods[0].word_highlight_keys[0].word }}</p>
            </div>
          </div>
          <div class="book_info_ul">
            <ul>
              <li class="active">一把刀，千个字</li>
              <li>一把刀，千个字（2021年王安忆新作，亲笔签名本）</li>
              <li>长恨歌</li>
              <li>长恨歌</li>
              <li>长恨歌</li>
              <li>富萍</li>
            </ul>
          </div>
        </div>
      </section>

      <!-- 商品数量 -->
      <section class="goods_num">
        <span>数量：</span>
        <van-stepper v-model="value" />
      </section>

      <section class="detail_lnink" @click="current = 1">
        图文详情
        <i class="iconfont icon-youjiantou"></i>
      </section>
      <section class="detail_lnink">
        更多卖家
        <span>18个卖家在售</span>
        <i class="iconfont icon-youjiantou"></i>
      </section>

      <!-- 评论区 -->
      <section class="comment_section">
        <div class="essay">
          <div class="comment_header">
            <div class="left">
              <span
                >短评{{
                  "(" +
                  goodDetail[0].review_list.short[0].summary.total_comment_num +
                  ")"
                }}</span
              >
              <span>{{
                "(" +
                goodDetail[0].review_list.short[0].summary.favorable_rate_str +
                ")"
              }}</span>
            </div>
            <div class="right">写短评</div>
          </div>
          <div class="book_user_info_cont">
            <ul class="book_user_info">
              <li
                class="item"
                v-for="(item, index) in goodDetail[0].review_list.short[0].user"
                :key="index"
              >
                <div class="user_info">
                  <img :src="item.cust_logo" alt="" />
                  <p class="user_name">{{ item.cust_name }}</p>
                  <div class="user_score">
                    <div class="stars">
                      <span></span>
                      <span></span>
                      <span></span>
                      <span></span>
                      <span></span>
                    </div>
                    <span class="score">10分</span>
                  </div>
                </div>
                <div class="use_review">
                  <p class="content_text">{{ item.content }}</p>
                  <div class="user_control">
                    <div>
                      <span></span>
                      赞
                    </div>
                    <div>
                      <span></span>
                      回复
                    </div>
                  </div>
                </div>
              </li>
            </ul>
          </div>
          <div class="more_btn">
            <div>查看更多短评</div>
          </div>
        </div>
        <div class="long_comment">
          <div class="comment_header">
            <div class="left">
              <span
                >长评{{
                  "(" +
                  goodDetail[0].review_list.long[0].summary.long_comment_count +
                  ")"
                }}</span
              >
            </div>
          </div>
          <div class="review_comment_title">
            人间至味是沧桑——读王安忆长篇小说《一把刀，千个字》（书评）
          </div>
          <div
            class="user_info"
            v-for="(item, index) in goodDetail[0].review_list.long[0].user"
            :key="index"
          >
            <div class="user_detail">
              <img :src="item.cust_logo" alt="" />
              <p class="userName">{{ item.cust_name }}</p>
            </div>
            <div class="user_score">
              <div class="stars">
                <span></span>
                <span></span>
                <span></span>
                <span></span>
                <span></span>
              </div>
              <span class="score">10分</span>
            </div>
            <div class="user_review_content">
              <p>
                {{ item.content }}
              </p>
            </div>
          </div>
          <div class="user_control">
            <div>
              <span></span>
              赞
            </div>
            <div>
              <span></span>
              回复
            </div>
          </div>
          <div class="more_btn">
            <div>查看更多长评</div>
          </div>
        </div>
      </section>

      <!-- 商铺物流描述 -->
      <section class="shop_logistics">
        <div class="title">
          <img
            src="https://img60.ddimg.cn/upload_img/00717/mproduct/ddshop_icon.png"
            alt=""
          />
          <p>当当自营图书</p>
        </div>
        <div class="evalution">
          <div>
            <p>商品包装</p>
            <p>4.75</p>
          </div>
          <div>
            <p>物流速度</p>
            <p>4.82</p>
          </div>
          <div>
            <p>快递员满意度</p>
            <p>4.83</p>
          </div>
        </div>
      </section>

      <!-- 商品轮播图 组件-->
      <RecommendBanner v-for="item in data" :key="item.name" :item="item" />

      <!-- 广告图 -->
      <div class="advertising">
        <img
          src="https://img60.ddimg.cn/upload_img/00876/0/1242x366_fr_20210907-1631241776.jpg"
          alt=""
        />
      </div>

      <!-- 底部 -->
      <footer-link />

      <!-- 底部购买bar 组件 -->
      <buyBottom
        @add-colect="$emit('add-colect', $event)"
        @currentBuy="$emit('currentBuy', $event)"
        :colect="colect"
        :id="id"
        :value="value"
      />
    </div>

    <!-- 详情 -->
    <goodsCard
      :goodDetail="goodDetail"
      :currentGoods="currentGoods"
      v-show="current == 1"
    />

    <!-- pinglun -->
    <pinglun :goodDetail="goodDetail" v-show="current == 2" />
    <!-- 推荐 -->
    <recomend
      :goodDetail="goodDetail"
      v-show="current == 3"
      @changeActive="changeCurrentFun"
    />
  </div>
</template>

<script>
import buyBottom from "../components/goodDetail/buyBottom.vue";
import banner from "../components/goodDetail/banner.vue";
import RecommendBanner from "../components/goodDetail/RecommendBanner.vue";
import goodsCard from "../components/goodDetail/goodsCard.vue";
import recomend from "../components/goodDetail/recomend.vue";
import pinglun from "../components/goodDetail/pinglun.vue";

import footerLink from "../components/base/footerLink.vue";
import { Toast } from "vant";

export default {
  props: ["colect"],
  components: {
    buyBottom,
    banner,
    RecommendBanner,
    footerLink,
    goodsCard,
    recomend,
    pinglun,
  },
  data() {
    return {
      nav: ["商品", "详情", "评论", "推荐"],
      showOption: false, //是否现实商品选择
      value: 1,
      data: [],
      mask: false,
      goodDetail: null,
      current: 0,
      showDetail: false,
      goods: [],
      currentGoods: [],
      id: null,
      showPopover: false,
      // 通过 actions 属性来定义菜单选项
      actions: [
        { text: "首页" },
        { text: "分类" },
        { text: "值得买" },
        { text: "购物车" },
        { text: "我的订单" },
        { text: "我的当当" },
      ],
    };
  },
  created() {
    var data1 = require("../../public/jSON/recommendBanner");
    var data2 = require("../../public/jSON/goodDetail");
    this.goods = require("../../public/jSON/good");
    this.data = data1;
    this.goodDetail = data2;
    // console.log(this.goodDetail);
    this.id = this.$route.query.id;
    console.log(this.$route.query.id);
    this.getGoodFun(this.$route.query.id);
  },
  methods: {
    changeCurrentFun(val) {
      this.current = val;
    },
    cunrrentIndex(index) {
      this.current = index;
    },
    getGoodFun(val) {
      let arr = [];
      for (let i = 0; i < this.goods.length; i++) {
        if (this.goods[i].id == val) {
          arr.push(this.goods[i]);
        }
      }
      this.currentGoods = arr;
      console.log(this.currentGoods);
      window.addEventListener("beforeunload", window.scroll(0, 0));
    },
    onSelect(action, index) {
      Toast("前往" + action.text);
      console.log(index);
      switch (index) {
        case 0:
          this.$router.push({ path: "/home" });
          break;
        case 1:
          this.$router.push({ path: "/category" });
          break;
        case 2:
          this.$router.push({ path: "/buy" });
          break;
        case 3:
          this.$router.push({ path: "/car" });
          break;
        case 4:
          this.$router.push({ path: "/pay" });
          break;
        default:
          this.$router.push({ path: "/my" });
          break;
      }
    },
  },
  mounted() {
    window.addEventListener("beforeunload", window.scroll(0, 0));
  },
  watch: {
    "$route.query.id": function () {
      this.getGoodFun(this.$route.query.id);
      console.log(222);
    },
  },
};
</script>

<style lang="less" >
.user_score {
  margin-top: 10px;
  float: right;
  display: flex;
  align-items: center;
  color: #ff8161;
  font-size: 13px;
  .stars {
    margin-left: 5px;
    display: flex;
    align-items: center;
    span {
      display: inline-block;
      width: 15px;
      height: 15px;
      margin-right: 5px;
      background-image: url("http://product.m.dangdang.com/images/review/stars1.png");
      background-size: cover;
      background-position: -34px 0px;
      background-repeat: no-repeat;
    }
  }
}
.user_control {
  height: 30px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  div {
    font-size: 12px;
    color: #969696;
    margin-left: 10px;
    display: flex;
    align-items: center;
    span {
      display: inline-block;
      width: 15px;
      height: 15px;
      line-height: 20px;
      margin-right: 3px;
    }
    &:nth-child(1) span {
      background-image: url("http://product.m.dangdang.com/images/review/book_operate.png");
      background-size: 30px 30px;
      background-repeat: no-repeat;
      background-position: 0px -15px;
    }
    &:nth-child(2) span {
      background-image: url("http://product.m.dangdang.com/images/review/reply_icon.png");
      background-size: cover;
      background-repeat: no-repeat;
    }
  }
}
.goodsDetail_box {
  width: 100%;
  position: relative;
  color: #4d525d;
  .header {
    width: 100%;
    max-width: 750px;
    min-width: 375px;
    border-bottom: 2px solid rgba(136, 136, 136, 0.3);
    box-sizing: border-box;
    height: 44px;
    display: flex;
    background-color: white;
    position: fixed;
    top: 0;
    z-index: 2000;
    .icon_header {
      // width: 40px;
      flex: 0 0 40px;
      text-align: center;
      line-height: 44px;
    }
    div {
      flex: 1;
      display: flex;
      justify-content: space-evenly;
      span {
        line-height: 44px;
        font-size: 17px;
        &.active {
          color: red;
          border-bottom: 2px solid #999;
        }
      }
    }
  }
  .van-popup,
  .van-popover,
  .van-popover--light {
    top: 5px;
  }
  .goods {
    .content {
      margin-top: 44px;
      .app_img {
        img {
          width: 100%;
        }
      }
    }
    .good_decription {
      margin-top: 2px;
      // height: 131px;
      padding-left: 10px;
      box-sizing: border-box;
      background-color: white;
      .artile {
        .name {
          // height: 21px;
          display: flex;
          align-items: center;
          padding: 5px 0px;
          color: rgba(0, 0, 0, 0.842);
          img {
            width: 50px;
            margin-right: 5px;
          }
        }
        .author {
          font-size: 12px;
          color: #969696;
          margin: 5px 0px;
        }
      }
      .priceBox {
        height: 57px;
        margin-top: 15px;
        .left_price {
          position: relative;
          height: 24px;
          font-size: 13px;
          color: #ff463c;
          display: flex;
          align-items: center;
          .currentPrice {
            font-size: 20px;
            margin-right: 5px;
          }
          .disco {
            color: #969696;
            margin-right: 10px;
          }
          .notice {
            height: 22px;
            line-height: 22px;
            border: 1px solid #000;
            border-radius: 11px;
            padding: 0px 5px;
            color: black;
            font-size: 12px;
          }
          .bookType {
            position: absolute;
            right: 10px;
            padding-left: 10px;
            border-left: 1px solid rgba(136, 136, 136, 0.651);
          }
        }
        .orginal_price {
          margin-top: 10px;
          font-size: 13px;
          height: 23px;
          color: #969696;
          span {
            text-decoration: line-through;
          }
        }
      }
      .bool_score {
        height: 60px;
        font-size: 13px;
      }
    }
    .book_score {
      width: 100%;
      height: 60px;
      padding: 0px 10px;
      box-sizing: border-box;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .left {
        .stars_box {
          display: flex;
          align-items: center;
          color: #ff8161;
          font-weight: bold;
          font-size: 15px;
          .stars {
            margin-left: 5px;
            span {
              display: inline-block;
              width: 15px;
              height: 15px;
              margin-right: 5px;
              background-image: url("http://product.m.dangdang.com/images/review/stars1.png");
              background-size: cover;
              background-position: -34px 0px;
              background-repeat: no-repeat;
            }
          }
        }
        .ping_num {
          margin-top: 5px;
          font-size: 12px;
          color: #888;
          span {
            color: #ff8161;
          }
        }
      }
      .right {
        .write_commennt {
          width: 80px;
          height: 26px;
          color: #ff8161;
          border: 1px solid #ff8161;
          border-radius: 13px;
          font-size: 12px;
          text-align: center;
          line-height: 25px;
        }
      }
    }
    .promote {
      display: flex;
      align-items: center;
      height: 40px;
      background-color: white;
      padding: 0px 10px;
      box-sizing: border-box;
      border-top: 1px solid rgba(136, 136, 136, 0.3);
      border-bottom: 1px solid rgba(136, 136, 136, 0.3);
      .left {
        width: 40px;
        font-size: 14px;
        color: #ea002a;
      }
      .center {
        flex: 1;
        font-size: 12px;
        color: #4d525d;
        span {
          display: inline-block;
          border: 1px solid #ea002a;
          border-radius: 5px;
          color: #ea002a;
          padding: 0px 2px;
        }
      }
      .right {
        i {
          font-size: 14px;
          color: #888;
        }
      }
    }
    .link_author {
      height: 136px;
      background-color: white;
      padding: 0px 10px;
      margin: 10px 0px;
      box-sizing: border-box;
      border-top: 1px solid rgba(136, 136, 136, 0.3);
      border-bottom: 1px solid rgba(136, 136, 136, 0.3);
      div {
        display: flex;
        align-items: center;
        height: 45px;
        &:nth-child(1) {
          border-bottom: 1px solid rgba(136, 136, 136, 0.3);
        }
        &:nth-child(2) {
          border-bottom: 1px solid rgba(136, 136, 136, 0.3);
        }
        .left {
          width: 40px;
          font-size: 14px;
          color: #969696;
        }
        .cont {
          flex: 1;
          font-size: 14px;
          color: #4d525d;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
        }
        .work {
          width: 70px;
          font-size: 13px;
          color: #969696;
        }
        i {
          font-size: 14px;
          color: #888;
        }
      }
    }
    .address_box {
      border-top: 1px solid rgba(136, 136, 136, 0.3);
      border-bottom: 1px solid rgba(136, 136, 136, 0.3);
      padding: 10px;
      box-sizing: border-box;
      background-color: white;
      .adress {
        display: flex;
        height: 60px;
        align-items: start;
        justify-content: space-between;
        .to {
          width: 40px;
          font-size: 14px;
          text-align: center;
        }
        .place {
          flex: 1;
          font-size: 13px;
          line-height: 1.5;
          .middle {
            color: #ff8161;
          }
        }
        i {
          font-size: 14px;
          color: #888;
          line-height: 60px;
        }
      }
      .ensure {
        width: 100%;
        height: 80px;
        padding: 10px 0px;
        box-sizing: border-box;
        ul {
          padding-top: 5px;
          border-top: 1px solid rgba(136, 136, 136, 0.3);
          // display: flex;
          // flex-wrap: wrap;
          justify-content: space-between;
          overflow: hidden;
          li {
            float: left;
            font-size: 12px;
            text-indent: 8px;
            margin-right: 17px;
            line-height: 2;
            color: #4d525d;
            background-image: url("http://product.m.dangdang.com/images/icon_point.png");
            background-repeat: no-repeat;
            background-position: 0px 8px;
            background-size: 5px;
          }
        }
      }
    }
    .relation_options {
      margin: 10px 0px;
      padding: 0px 10px;
      box-sizing: border-box;
      background-color: white;
      border-top: 1px solid rgba(136, 136, 136, 0.3);
      border-bottom: 1px solid rgba(136, 136, 136, 0.3);
      .option {
        display: flex;
        height: 44px;
        line-height: 44px;
        justify-content: space-between;
        font-size: 14px;
        .title {
          display: flex;
          overflow: hidden;
          .left {
            // flex: 0 0 10%;
            margin-right: 10px;
          }
          .right {
            flex: 1;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
        }
        .option_icon {
          i {
            font-size: 14px;
            color: #888;
          }
        }
      }
      .book_info {
        .book_info_detail {
          display: flex;
          align-items: center;
          img {
            width: 50px;
            // height: 50px;
            margin-right: 5px;
          }
          .book_info_cont {
            flex: 1;
            p {
              &:nth-child(1) {
                font-size: 14px;
                color: #ff8161;
                line-height: 1.5;
              }
              &:nth-child(2) {
                font-size: 12px;
                color: #37393e;
              }
            }
          }
        }
      }
      .book_info_ul {
        width: 100%;
        padding: 10px 0px;
        ul {
          width: 100%;
          overflow: hidden;
          li {
            float: left;
            font-size: 14px;
            line-height: 2;
            color: #4d525d;
            margin: 7.5px 10px 0px 0px;
            padding: 0px 5px;
            border: 1px solid #e5e5e5;
            border-radius: 3px;
            background-color: #f8f8f8;
            &.active {
              background-color: #ff8161;
              color: white;
            }
          }
        }
      }
    }
    .goods_num {
      display: flex;
      align-items: center;
      background-color: white;
      height: 52px;
      padding: 0px 10px;
      box-sizing: border-box;
      margin-bottom: 10px;
      span {
        margin-right: 10px;
        font-size: 14px;
      }
    }
    .detail_lnink {
      height: 44px;
      line-height: 44px;
      font-size: 14px;
      background-color: white;
      padding: 0px 10px;
      margin-bottom: 10px;
      box-sizing: border-box;
      border-top: 1px solid rgba(136, 136, 136, 0.3);
      border-bottom: 1px solid rgba(136, 136, 136, 0.3);
      span {
        color: #969696;
      }
      i {
        float: right;
        font-size: 14px;
        color: rgba(136, 136, 136, 0.3);
      }
    }
    .comment_section {
      width: 100%;
      margin-top: 10px;
      box-sizing: border-box;
      div {
        background-color: white;
        &.essay {
          margin-bottom: 10px;
        }
        .comment_header {
          padding: 0px 10px;
          height: 52px;
          display: flex;
          align-items: center;
          justify-content: space-between;
          font-size: 14px;
          .left {
            span {
              &:nth-child(2) {
                margin-left: 5px;
                color: #ff8186;
              }
            }
          }
          .right {
            font-size: 12px;
            border: 1px solid #ff8186;
            padding: 2px 4px;
            border-radius: 5px;
            color: #ff8186;
          }
        }
        .book_user_info_cont {
          padding: 0px 10px;
          box-sizing: border-box;
          .book_user_info {
            .user_info {
              overflow: hidden;
              img {
                width: 40px;
                border-radius: 20px;
                float: left;
              }
              .user_name {
                font-size: 12px;
                margin-left: 10px;
                float: left;
                line-height: 40px;
              }
            }
            .use_review {
              margin: 10px 0px;
              .content_text {
                font-size: 12px;
                line-height: 1.5;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 3;
                word-break: break-all;
              }
            }
          }
        }
        .more_btn {
          display: flex;
          align-items: center;
          justify-content: center;
          div {
            width: 120px;
            height: 36px;
            font-size: 12px;
            text-align: center;
            line-height: 36px;
            color: #ff8186;
            border: 1px solid #ff8186;
            border-radius: 18px;
            margin-bottom: 10px;
          }
        }
        &.long_comment {
          .review_comment_title {
            font-weight: bold;
            padding: 0px 10px;
            box-sizing: border-box;
          }
          .user_info {
            margin: 10px 0;
            position: relative;
            overflow: hidden;
            padding: 0px 10px;
            box-sizing: border-box;
            .user_detail {
              float: left;
              display: flex;
              align-items: center;
              img {
                width: 40px;
                height: 40px;
                border-radius: 40px;
              }
            }
          }
          .user_review_content {
            width: 100%;
            p {
              width: 100%;
              font-size: 12px;
              line-height: 1.5;
              overflow: hidden;
              text-overflow: ellipsis;
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 3;
              word-break: break-all;
              margin-bottom: 10px;
            }
          }
        }
      }
    }
    .shop_logistics {
      margin-top: 10px;
      padding: 0px 10px 10px;
      box-sizing: border-box;
      background-color: white;
      .title {
        height: 55px;
        display: flex;
        align-items: center;
        img {
          width: 36px;
          height: 36px;
          margin-right: 10px;
        }
      }
      .evalution {
        height: 40px;
        display: flex;
        margin: 10px 0;
        div {
          &:nth-child(1) {
            padding: 0px 30px 0px 10px;
            border-right: 1px solid rgba(136, 136, 136, 0.3);
          }
          &:nth-child(2) {
            padding: 0px 30px;
            border-right: 1px solid rgba(136, 136, 136, 0.3);
          }
          &:nth-child(3) {
            margin: 0px 0px 0px 30px;
          }
          p {
            &:nth-child(1) {
              font-size: 12px;
              color: #969696;
            }
            &:nth-child(2) {
              font-size: 15px;
              color: #000;
              font-weight: bold;
            }
          }
        }
      }
    }
    .advertising {
      margin-bottom: 10px;
      img {
        width: 100%;
      }
    }
  }
}
.auto {
  margin: 100px auto;
}
.mask {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #4d525d;
  z-index: 99999;
}
</style>